package com.rmi.service.impl;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

import com.rmi.service.TestAServer;
/**
 * <b>对远程调用的一个测试业务接口的实现</b>
 * <p>
 * 描述:<br>
 * 需要继承一个UnicastRemoteObject
 * 业务实现对该业务名称的输出
 * 业务实现对两个数进行和运算
 * @author 威 
 * <br>2018年5月29日 下午10:46:50 
 * @see java.rmi.server.UnicastRemoteObject
 * @see com.rmi.service.TestAServer
 */
public class TestAServerImpl extends UnicastRemoteObject implements TestAServer{
	private static final long serialVersionUID = 1L;
	public TestAServerImpl() throws RemoteException {
		super();
	}
	@Override
	public void doService(String name) throws RemoteException {
		 System.out.println("your name is" + name);
	}
	@Override
	public void sum(int a, int b) throws RemoteException{
		System.out.println("进行加法运算：a+b="+(a+b));
	}
}